﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace GraphViewer.Configuration
{
    public class EnvironmentConfigurationSection : ConfigurationSection
    {
        [ConfigurationProperty("controlM", IsRequired = true)]
        [ConfigurationCollection(typeof(ControlMConfigurationElement), AddItemName = "add")]
        public ConfigurationCollection<ControlMConfigurationElement> ControlM
        {
            get
            {
                return (ConfigurationCollection<ControlMConfigurationElement>)this["controlM"];
            }
        }

        [ConfigurationProperty("simio", IsRequired = true)]
        [ConfigurationCollection(typeof(SimioConfigurationElement), AddItemName = "add")]
        public ConfigurationCollection<SimioConfigurationElement> Simio
        {
            get
            {
                return (ConfigurationCollection<SimioConfigurationElement>)this["simio"];
            }
        }
    }
}
